import pymongo
a=pymongo.MongoClient()
b=a['VnTrader_1Min_Db']
c=b['IF0000']
# $gte $lt $lte  $gt $ne  分别为：>=,<,<=,>,!=
time={"date":{"$gte":'20150105',"$lt":'20150106'}}
d=c.find(time)
for i in d:
    print(i)